//
//  Area.m
//  07-MRC省市区!
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import "Area.h"

@implementation Area
- (instancetype)initWithName:(NSString *)name {
    return [self initWithName:name number:nil];
}
+ (instancetype)areaWithName:(NSString *)name{
    return [[self alloc] initWithName:name];
}
- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super init];
    if (self) {
        _name = name;
        _number = number;
    }
    return self;
}
+ (instancetype)areaWithName:(NSString *)name number:(NSString *)number
{
    return [[self alloc] initWithName:name number:number];
}
- (instancetype)initWithTempCity:(TempCity *)tempCity{
    return [self initWithName:tempCity.cityName number:tempCity.cityNumber];
}
+ (instancetype)areaWithTempCity:(TempCity *)tempCity{
    return [[self alloc] initWithTempCity:tempCity];
}
- (void)dealloc {
    [_name release];
    [_number release];
    [super dealloc];
}
@end
